<?php
/**
 * This file is part of the Agora distribution. 
 * Detailed copyright and licensing information can be found
 * in the gpl-3.0.txt file which should be included in the distribution.
 * 
 * @version		$Id: 3.0.14 Olympus 2010-09-28 rammstein4o $
 * @copyright  2007 - 2010 jVitals
 * @license   GPLv3 Open Source
 * @link       http://jvitals.com
 * @since      File available since initial release
 */

defined ('IN_AGORA') or die;

/* Iskar:
   We use eval in order to prevent path disclosure. 
   When accessed directly on a php5 server this script will 
   throw Fatal error because of the php4 style __call declaration.
   The ifnotdefined/die statement will not help as the script is
   evaluated prior to execution.
*/

$class_decl = 'class AgoraDatabase extends AgoraCommonDatabase
{
	function AgoraDatabase($prefix)
	{
		overload(\'AgoraDatabase\');
		parent::__construct($prefix);
	}

	function __call($name,$args, & $return)
	{
		$return = call_user_func_array(array($this->_db,$name),$args);
		return true;
	}

}
';
if (floatval(PHP_VERSION) < 5.0) eval($class_decl);

?>
